package com.rongxun.hbwallet.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 创建者     庄丰泽
 * 创建时间   2018/8/22 14:32
 * 描述	     糖果任务
 */

public class CandyTask implements Parcelable{


    /**
     * todayNum : 0
     * todayLimit : null
     * event : 邀请好友
     * candyNum : 0
     */

    private int todayNum;
    private String todayLimit;
    private String event;
    private int    candyNum;

    protected CandyTask(Parcel in) {
        todayNum = in.readInt();
        todayLimit = in.readString();
        event = in.readString();
        candyNum = in.readInt();
    }

    public CandyTask() {
    }

    public static final Creator<CandyTask> CREATOR = new Creator<CandyTask>() {
        @Override
        public CandyTask createFromParcel(Parcel in) {
            return new CandyTask(in);
        }

        @Override
        public CandyTask[] newArray(int size) {
            return new CandyTask[size];
        }
    };

    public int getTodayNum() {
        return todayNum;
    }

    public void setTodayNum(int todayNum) {
        this.todayNum = todayNum;
    }

    public String getTodayLimit() {
        return todayLimit;
    }

    public void setTodayLimit(String todayLimit) {
        this.todayLimit = todayLimit;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public int getCandyNum() {
        return candyNum;
    }

    public void setCandyNum(int candyNum) {
        this.candyNum = candyNum;
    }

    @Override
    public String toString() {
        return "CandyTask{" +
                "todayNum=" + todayNum +
                ", todayLimit=" + todayLimit +
                ", event='" + event + '\'' +
                ", candyNum=" + candyNum +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(todayNum);
        dest.writeString(todayLimit);
        dest.writeString(event);
        dest.writeInt(candyNum);
    }
}
